<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
import { globlData } from './common/globData/GloblData';
import { HttpMethod, httpUtil } from './common/netWork/httpUtil';
import { configHelper } from './common/utils/ConfigHelper';
import LogUtil, { LOG_LEVEL } from './common/utils/LogUtil';
import { platformHelper } from './common/utils/PlatformHelper';
//应用启动后 这里初始化 加载所有配置 初始化全启数据
onLaunch(() => {
	//全局数据初始化
	globlData.init();
	LogUtil.log(LOG_LEVEL.DEBUG,"onLaunch",globlData.getAppHttpHost())
	//配置文件初始化
	configHelper.loadConf();
	//初始化网络配置
	httpUtil.setConfig({ method: HttpMethod.POST });
	//平台帮助类
	platformHelper.init();
	console.log('App Launch');
});
onShow(() => {
	console.log('App Show');
});
onHide(() => {
	console.log('App Hide');
});
</script>
<style lang="scss">
	/*每个页面公共css */
	@import 'commoncss/main';
</style>
